import Vue from 'vue'

import VueRouter from 'vue-router'

Vue.use(VueRouter);

import {Start,List,New,Main,error404,login} from '../vaew'



export default new VueRouter({
  routes:[
    {
      path:'/',
      component:Main,
      children:[
        {
          path:'',
          component:Start
        },
        {
          path:'/List',
          component:List,

        },
        {
          path:'/New',
          component:New
        },


      ]
    },

    {
      path:'/login',
      component:login,
    },

    {
      path:'*',
      component:error404
    }



  ]
});
